package com.example.springsecurity02.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ Description：受保护的资源
 * @ Tool：IntelliJ IDEA
 * @ Author：lk
 * @ Date：2024-10-08-11:38 PM
 * @ Version：1.0
 */
@RestController
public class HelloController {

    @GetMapping("/hello")
    public String hello() {
        System.out.println("hello");
        return "hello";
    }
}